﻿@using Scheduling.Models.Helpers;

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Karlstad University Scheduling</title>
    <link href="@Href("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <link href="@Href("~/Content/theme-kau/site.css")" rel="stylesheet" type="text/css" />
    <link href="@Href("~/Content/ui-lightness/jquery-ui-1.8.16.custom.css")" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="@Href("~/Scripts/jquery-1.6.2.min.js")"></script>
    <script type="text/javascript" src="@Href("~/Scripts/jquery-ui-1.8.16.custom.min.js")"></script>
    <script type="text/javascript" src="@Href("~/Scripts/scripts.js")"></script>
</head>

<body>
    <div id="holder">
        <div id="main">
            <div id="header">
                <ul id="TopMenu">
                <li class="TopMenuItem">@Html.ActionLink("Start Page", "Index", new { Controller = "Home" })</li>
                    @if(UserHelper.IsUserAuthenticated()){
                        <li class="TopMenuItem">@Html.ActionLink("My Bookings", "List", new { Controller = "Booking" })</li>
                        <li class="TopMenuItem">@Html.ActionLink("Courses", "List", new { Controller = "Course" })</li>
                        <li class="TopMenuItem">@Html.ActionLink("Rooms", "List", new { Controller = "Room" })</li>
                        <li class="TopMenuItem">@Html.ActionLink("Users", "List", new { Controller = "User" })</li>
                        <li class="TopMenuItem">@Html.ActionLink("Log Out", "Logout", new { Controller = "User" })</li>
                    }
                    else
                    {
                        <li class="TopMenuItem">@Html.ActionLink("Log In", "Login", new { Controller = "User" })</li>
                    }
                    <div style="text-align:right;">Logged in as: <strong>@UserHelper.GetAuthenticatedUserID()</strong></div>
                </ul>
            </div>
            <div id="content">
                @RenderBody()
            </div>
        </div>
    </div>
</body>
</html>